import request from '../request';

/** demo*/
class Demo {
  /**post模式*/
  demoPost($data) {
    return request.ajax('demo/index/demoPost', $data, 'post');
  }

  /**get模式*/
  demoList($data) {
    return request.ajax('demo/index/demoList', $data);
  }
}

export default new Demo();
